package org.geektimes.configuration.microprofile.config;

import org.eclipse.microprofile.config.Config;

public class ConfigHolder {

	private static ThreadLocal<Config> CONFIG = new ThreadLocal<Config>(){
		
		protected Config initialValue() {return null;}
	};
	
	public static void set(Config config) {
		CONFIG.set(config);
	}
	
	public static Config get(){
		return CONFIG.get();
	}
	
	public static void remove(){
		CONFIG.remove();
	}
	
}
